# #####题一########
print("a = 5")
print("b = 7")
a = 5
b = 7
print("1.0 + a / b", 1.0 + a / b)

# #####题二########
x = input("请输入数x：")
y = input("请输入数y：")
z = input("请输入数z：")
print("x或y中是否有一个小于z的表达式", x < z or y < z)

# ######题三########
import numpy as np
print("1表示灯亮，0表示灯灭。")
start1 = input("请按1开始游戏：")
b = np.random.randint(1, 13, 1)
start2 = input("请拉0开始亮灯：")
print("弹球所在位置：", b)
a = np.random.randint(0, 2, 12)
print("亮灯情况：", a)
B = str(b).replace("[", "").replace("]", "")
A = str(a).replace(" ", "").replace("[", " ").replace("]", "")
C = int(B)
D = int(str(A)[C])
if D == 1:
    print("恭喜，你赢了！")
else:
    print("你输了，要继续加油喔！")
